<!-- File: /app/View/Sabbathschool/view.ctp -->
	
	<p><?php echo h($sabbathschool['Sabbathschool']['sqtr']); ?></p>
    <h1><?php echo h($sabbathschool['Sabbathschool']['syear']); ?></h1>
    <p><small>Date: <?php echo $sabbathschool['Sabbathschool']['sdate']; ?></small></p>    
    <p><?php echo h($sabbathschool['Sabbathschool']['memtxt']); ?></p>
    <p><?php echo h($sabbathschool['Sabbathschool']['title']); ?></p>
    <p><?php echo h($sabbathschool['Sabbathschool']['sup']); ?></p>
    <p><?php echo h($sabbathschool['Sabbathschool']['sec']); ?></p>
    <p><?php echo h($sabbathschool['Sabbathschool']['pry']); ?></p>
    <p><?php echo h($sabbathschool['Sabbathschool']['misr']); ?></p>

	<!-- PaginatorHelper  offers sorting features  -->

	<table>
    <tr>
        <th><?php echo $paginator->sort('ID', 'id'); ?></th>
        <th><?php echo $paginator->sort('Title', 'title'); ?></th>
    </tr>
       <?php foreach($data as $recipe): ?>
    <tr>
        <td><?php echo $recipe['Sabbathschool']['id']; ?> </td>
        <td><?php echo $recipe['Sabbathschool']['title']; ?> </td>
    </tr>
    <?php endforeach; ?>
</table>


<!-- Shows the page numbers -->
<?php echo $paginator->numbers(); ?>
<!-- Shows the next and previous links -->
<?php
    echo $paginator->prev('« Previous ', null, null, array('class' => 'disabled'));
    echo $paginator->next(' Next »', null, null, array('class' => 'disabled'));
?>
<!-- prints X of Y, where X is current page and Y is number of pages -->
<?php echo $paginator->counter(); ?>
The wording output by the counter() method can also be customized using special markers:

<?php
echo $paginator->counter(array(
    'format' => 'Page %page% of %pages%, showing %current% records out of
             %count% total, starting on record %start%, ending on %end%'
));
?>

<!-- To pass all URL arguments to paginator functions -->

$paginator->options(array('url' => $this->passedArgs));



<!--If the ‘update’ key is not specifed, the PaginationHelper will output non-Ajax pagination sorting and paging links. -->

<?php
//Sets the update and indicator elements by DOM ID
$paginator->options(array('update' => 'content', 'indicator' => 'spinner'));

echo $paginator->prev('<< Previous', null, null, array('class' => 'disabled'));

echo $paginator->next('Next >>', null, null, array('class' => 'disabled'));
?>

<!-- prints X of Y, where X is current page and Y is number of pages -->
<?php echo $paginator->counter(); ?>


<!-- RequestHandler component to use Ajax calls -->

var $components = array('RequestHandler');
